package com.zbb.exam_system;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;
import org.springframework.transaction.annotation.EnableTransactionManagement;
/**
 * @author zbbstart
 * @date 2021/2/8 - 8:04
 */
@SpringBootApplication
/*
  扫描数据层
 */
@MapperScan("com.zbb.exam_system.mapper")

//扫描带@WebServlet、@WebFilter、@WebListener的类
//@ServletComponentScan

/**
 * 事务管理
 */
@EnableTransactionManagement
/**
 * 开始权限注解的使用
 */
@EnableGlobalMethodSecurity(securedEnabled = true,prePostEnabled = true,jsr250Enabled = true)
public class ExamSystemApplication {

    public static void main(String[] args) {
        SpringApplication.run(ExamSystemApplication.class, args);
    }

}
